package com.offcn.pojo;

import java.io.Serializable;

/**
 * @author: Mr.Chu
 * @create: 2021-06-13 23:03
 * @Description //TODO
 **/

public class StudentTeacher implements Serializable {
    private int sid;
    private int tid;

    //描述和teacher的关联关系：一对一的关联关系
    private Teacher teacher;

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "StudentTeacher{" +
                "sid=" + sid +
                ", tid=" + tid +
                ", teacher=" + teacher +
                '}';
    }
}
